import request from "@/utils/request";
// import { loginForm } from "./type";

// enum API{
//     LOGIN_URL="/user/login",
//     USERINFO_URL="/api/user/info"
// }
export const reqLogin=(data:any)=>{
    return request({
        url:'/admin/acl/index/login',
        method:'post',
        data

    })
}
export const reqUserInfo=()=>{
    return request({
        url:'/admin/acl/index/info',
        method:'get',
      

    })
}
export const reqLogout=()=>{
    return request({
        url:'/admin/acl/index/logout',
        method:'post',
      

    })
}
// export const reqLogin=(data:any)=>request.post(API.LOGIN_URL,data)
//  export const reUserinfo=()=>request.get(API.USERINFO_URL)